package com.RLFZ.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.RLFZ.entity.NocvNews;
import com.RLFZ.mapper.NocvNewsMapper;
import com.RLFZ.service.NocvNewsService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服务接口实现
 *
 * @author zh
 * @since 2022-08-25 17:16:58
 * @description 
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class NocvNewsServiceImpl extends ServiceImpl<NocvNewsMapper, NocvNews> implements NocvNewsService {

    @Autowired
    private NocvNewsMapper nocvNewsMapper;
    @Override
    public List<NocvNews> listNewsLimit5() {
        return nocvNewsMapper.listNewsLimit5();
    }
}